---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
Cell In[149], line 12
10 plt.axhline(mean,color = "red", linestyle = "--", linewidth = 1)
11 plt.axhline(p025,color = "red", linestyle = "--", linewidth = 1)
---> 12 plt.axhline(p975[0],color = "red", linestyle = "--", linewidth = 1)
13 trans = transforms.blended_transform_factory(
14 ax.get_yticklabels()[0].get_transform(), ax.transData)
15 ax.text(0,mean, "{:.5f}".format(mean), color="red", transform=trans,
16 ha="right", va="center")
IndexError: invalid index to scalar variable.